package com.irdstudio.tdp.console.service.facade;

import java.util.List;

import com.irdstudio.tdp.console.service.vo.AppModelTreeVO;
import com.irdstudio.sdk.beans.core.vo.EasyUITreeData;

/**
 * <p>Description:应用模型结构树				<p>
 * @author zjj
 * @date 2021-03-16
 */
public interface AppModelTreeService {
	
	public List<AppModelTreeVO> queryAllOwner(AppModelTreeVO appModelTreeVo);
	
	public List<AppModelTreeVO> queryAllCurrOrg(AppModelTreeVO appModelTreeVo);
	
	public List<AppModelTreeVO> queryAllCurrDownOrg(AppModelTreeVO appModelTreeVo);
	
	public int insertAppModelTree(AppModelTreeVO inAppModelTreeVo);
	
	public int deleteByPk(AppModelTreeVO appModelTreeVo);
	
	public int updateByPk(AppModelTreeVO appModelTreeVo);
	
	public AppModelTreeVO queryByPk(AppModelTreeVO appModelTreeVo);


	/**
	 * 批量插入应用业务模型信息记录
	 * @param appId
	 * @param appModelTreeVOs
	 * @return
	 * @throws Exception
	 */
	public int batchInsertAppModelTrees(List<AppModelTreeVO> appModelTreeVOs);

	/**
	 * 查询目录树
	 * @param appId
	 * @return
	 */
	public EasyUITreeData queryTreeData(AppModelTreeVO appModelTreeVo);

	/**
	 * 查询目录树
	 * @return
	 */
	public List<EasyUITreeData> queryTreeDataWithSingle(AppModelTreeVO appModelTreeVo);

}
